package com.alibaba.jingn.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author ZhangXuHao
 * @date 2021/04/15  16:09
 */
@Component
public class BusinessConstant {

    public static String appKey;

    public static String appSecret;

    public static String accessToken;

    @Value("${erp.app_key}")
    public void setAppKey(String appKey){
        BusinessConstant.appKey = appKey;
    }
    @Value("${erp.app_secret}")
    public void setAppSecret(String appSecret){
        BusinessConstant.appSecret = appSecret;
    }
    @Value("${erp.access_token}")
    public void setAccessToken(String accessToken){
        BusinessConstant.accessToken = accessToken;
    }

}
